import request from '@/utils/request'

export function pageList(data, pageInfo) {
    return request({
        url: '/sys/admin/page',
        method: 'post',
        data,
        pageInfo
    })
}
export function remove(data) {
    return request({
        url: '/sys/admin/delete',
        method: 'post',
        data
    })
}
export function add(data) {
    return request({
        url: '/sys/admin/add',
        method: 'post',
        data
    })
}
export function edit(data) {
    return request({
        url: '/sys/admin/edit',
        method: 'post',
        data
    })
}
export function detail(id) {
    return request({
        url: '/sys/admin/detail/' + id,
        method: 'get',
    })
}